package database

import (
	"gorm.io/gorm"
)

type Repository interface {
	DB() *gorm.DB
}

type BaseRepo struct {
	db *gorm.DB
}

func NewBaseRepo(db *gorm.DB) *BaseRepo {
	return &BaseRepo{
		db: db,
	}
}

func (br *BaseRepo) DB() *gorm.DB {
	return br.db
}
